class TFBaseShieldFX extends xEmitter;

var tfbasecore basec;

replication
{
	reliable if ( Role == ROLE_Authority )
		basec;
}

simulated function postbeginplay()
{
    super.PostBeginPlay();
    settimer(0.2,true);
}

simulated function timer()
{
    if(basec!=none)
    {
        if(basec.MyTeam==0)
        {
            mColorRange[0].B=50;
            mColorRange[0].G=50;
            mColorRange[0].R=255;
            mColorRange[1].B=50;
            mColorRange[1].G=100;
            mColorRange[1].R=255;
        }
        else
        {
            mColorRange[0].B=255;
            mColorRange[0].G=50;
            mColorRange[0].R=50;
            mColorRange[1].B=255;
            mColorRange[1].G=100;
            mColorRange[1].R=50;
        }

        mRegenRange[0]=basec.baseshield;
        mRegenRange[1]=basec.baseshield;
    }
    else destroy();
}

defaultproperties
{
     mParticleType=PT_Mesh
     mStartParticles=0
     mMaxParticles=30
     mLifeRange(0)=1.000000
     mLifeRange(1)=1.000000
     mSpeedRange(0)=0.000000
     mSpeedRange(1)=0.000000
     mAirResistance=0.000000
     mRandOrient=True
     mSpinRange(0)=50.000000
     mSpinRange(1)=-50.000000
     mSizeRange(0)=2.000000
     mSizeRange(1)=2.500000
     mAttenKa=0.500000
     mMeshNodes(0)=StaticMesh'Editor.TexPropSphere'
     bTrailerSameRotation=True
     Physics=PHYS_Trailer
     RemoteRole=ROLE_SimulatedProxy
     DrawScale=0.400000
     Skins(0)=FinalBlend'TFMedia.Buildings.BaseCShieldFB'
     Style=STY_Additive
}
